package com.etone.smartAudit.mapstruct;


import com.etone.smartAudit.domain.Item;
import com.etone.smartAudit.vo.projectFile.ProjectFileDirVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.MappingTarget;
import org.mapstruct.Mappings;


@Mapper(componentModel = "spring", imports = {org.springframework.util.CollectionUtils.class, com.alibaba.fastjson.JSON.class, org.springframework.util.StringUtils.class})
public interface ProjectFileMapstruct {


    @Mappings({
            @Mapping(source = "name", target = "fileName"),
            @Mapping(source = "id", target = "projectId"),
    })
    void copItem2Project(@MappingTarget ProjectFileDirVO projectFileDirVO, Item item);

}
